package com.mhd.databases.common;

/**
 * @ClassName ResultEnum.java
 * @Description 返回结果枚举类
 * @version 1.0.0
 * @author dengminghao
 * @createTime 2020/05/24 11:08
 */
public enum ResultEnum {
    SUCCESS("200","操作成功"),
    FAILED("500", "操作失败");

    private String code;
    private String msg;

    private ResultEnum(String code,String msg){
        this.code = code;
        this.msg = msg;
    }

    public void setCode(String code){
        this.code = code;
    }

    public void setMsg(String msg){
        this.msg = msg;
    }

    public String getCode(){
        return code;
    }

    public String getMsg(){
        return msg;
    }

}
